package com.imooc.service.impl;

import com.imooc.dao.WelcomeDao;
import com.imooc.service.WelcomeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * <h1></h1>
 *
 * @author : dzj
 * @create: 2021-10-16 19:37
 */
@Slf4j
@Service
public class WelcomeServiceImpl  implements WelcomeService {
	@Autowired
	private WelcomeDao welcomeDao;
	@Override
	public String sayHello(String name) {
	//	System.out.println("welcome :"+name);
		welcomeDao.sayHello(name);
		log.info("WelcomeServiceImpl");
		return "success";
	}
}
